
package com.business.dao.account;

import org.springframework.stereotype.Component;
import org.springside.modules.orm.hibernate.HibernateDao;

import com.business.entity.account.User;

/**
 * 用户对象的泛型DAO类.
 * 
 * @作者：remind²º¹¹ Email:gkm422@qq.com
 */
@Component
public class UserDao extends HibernateDao<User, Long> {
	
	private static final String COUNT_USERS = "select count(u) from User u";
	
	/**
	 * 统计用户数.
	 */
	public Long getUserCount() {
		return findUnique(UserDao.COUNT_USERS);
	}
}
